package com.example.wenliangjiudian.mapper;

import com.example.wenliangjiudian.entity.RoomType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoomTypeMapper {
    List<RoomType> selectAll();

    void delete(@Param("typeId") Integer typeId);

    void insert(@Param("typeName") String typeName);

    RoomType getByTypeId(@Param("typeId") Integer typeId);

    void update(@Param("typeId") Integer typeId, @Param("typeName") String typeName);
}
